home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11547 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.uni-c.dk!news
  2. From: Lec - Information <info@lec.dk>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: VC++ 4.0: How can I export functions in a DLL
  5. Date: 14 Mar 1996 11:57:36 GMT
  6. Organization: lec
  7. Message-ID: <4i91jg$6b7@news.uni-c.dk>
  8. References: <4houad$r77@news.uni-c.dk>
  9. NNTP-Posting-Host: info.lec.dk
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
  14.  
  15. After strugling a week or so I realized that using VC++ 4.0 to export functions/data from a DLL 
  16. apparently does NOT show in Win95' Quick view (that means there will be no export table in the 
  17. Dll!). 
  18.  
  19. I found af good hint under /EXPORT in the books online where it states that you can export 
  20. functions in 3 different ways.
  21.  
  22. 1. the famous __declspec (dllexport).
  23. 2. specify /EXPORT to the linker (exporting the function name)
  24. 3. do like in win 3.1 namely make a .DEF file where the functions explicitly is exported.
  25.  
  26. My original task was to access functions in a c++ - Dll from Delphi2.0 - and I succeded this 
  27. when I used way 2 and 3. Exporting using the first way I could not access the functions from 
  28. Delphi2.0 - BUT there was no problem in doing it from VC++4.0.
  29.  
  30.